package com.sneakxy.beans;

import java.io.Serializable;

import org.springframework.data.annotation.Id;

import com.sneakxy.mybatis.commons.annotations.Column;
import com.sneakxy.mybatis.commons.annotations.Table;
import com.sneakxy.mybatis.commons.orm.generation.GeneratedValue;
import com.sneakxy.mybatis.commons.orm.generation.GenerationType;

/**
 * @author 潜行的青衣
 * 
 */
@Table("t_user")
public class User implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 4655388727755275174L;
	
	@Id
	@GeneratedValue(strategy = GenerationType.SNOWFLAKE)
	private Long id;

	private Long parentId;
	
	@Column("name")
	private String name;
	
	private int age;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getParentId() {
		return parentId;
	}

	public void setParentId(Long parentId) {
		this.parentId = parentId;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int getAge() {
		return age;
	}

	public void setAge(int age) {
		this.age = age;
	}
	
}
